package org.glow.changgou.content.feign;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.glow.changgou.content.pojo.Content;
import org.glow.changgou.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @Author Glow
 * @Date 2022-09-26 19:34:56
 * @Description
 * @Version 1.0
 */
@FeignClient("content")
@RequestMapping("content")
public interface ContentFeign  {
    /*
根据分类的ID 获取到广告列表
 */
    @GetMapping(value = "/list/category/{id}")
    Result<List<Content>> findByCategory(@PathVariable(name="id") Long id);
}
